<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        * {
            margin: 0;
            padding: 0;
        }

        .content1 {
            background-color: rgb(54, 250, 250);
            width: 450px;
            height: 450px;
            border-radius: 5%;
            box-shadow: #ddd 0px 5px 5px 5px;
            margin: auto;
            margin-top: 100px;
            text-align: center;
        }

        table {
            margin: auto;
        }

        td {
            display: inline-block;
            margin-top: 50px;
        }

        h1 {
            color: rgb(92, 92, 92);
        }

        .ipt input {
            border: 1px solid #ddd;
            outline: none;
            width: 250px;
            height: 25px;
            border-radius: 10px;
            padding-left: 5px;
        }

        .btn input {
            width: 100px;
            height: 30px;
            border-radius: 5px;
            outline: none;
            border: 1px solid rgb(255, 255, 255);
            margin: 0px 5px;
            background-color: rgb(250, 250, 250);
        }

        .btn input:hover {
            background-color: rgb(206, 202, 202);
        }
    </style>
</head>

<body>
    <div id="app">
        <div class="content1">
            <form action="">
                <table>
                    <tr>
                        <th colspan="2">
                            <h1>登录</h1>
                        </th>
                    </tr>
                    <tr>
                        <td>账号：</td>
                        <td class="ipt"><input type="text" name="" id=""></td>
                    </tr>
                    <tr>
                        <td>密码：</td>
                        <td class="ipt"><input type="text" name="" id=""></td>
                    </tr>
                    <tr>
                        <td class="btn"><input type="submit" @click="add" value="登录" name="usernme" id=""></td>
                        <td class="btn"><a href="register.html"><input type="button" value="注册"></a></td>
                    </tr>
                </table>
            </form>
        </div>
    </div>
    <script src="https://cdn.jsdelivr.net/npm/vue@2/dist/vue.js"></script>
    <script>
        var vm = new Vue({
            el: '#app',
            data() {
                return {
                    
                }
            },
            methods: {
                add() {
                    alert('登录成功')
                }
            },
        })
    </script>
</body>

</html>